<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta charset="utf-8">
  <title><?=$title ?></title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="<?=$description ?>">
  <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,300,600&subset=cyrillic-ext,latin' rel='stylesheet' type='text/css'>

  
  <!-- Stylesheets -->
  <link href="/media/style/bootstrap.css" rel="stylesheet">
  <link rel="stylesheet" href="/media/style/font-awesome.css">
  <!-- Parallax slider -->
  <link rel="stylesheet" href="/media/style/slider.css">
  <!-- Flexslider -->
  <link rel="stylesheet" href="/media/style/flexslider.css">

  <link href="/media/style/style.css" rel="stylesheet">

  <!-- Colors - Orange, Purple, Light Blue (lblue), Red, Green and Blue -->
  <link href="/media/style/purple.css" rel="stylesheet">

  
  
  <!-- HTML5 Support for IE -->
  <!--[if lt IE 9]>
  <script src="js/html5shim.js"></script>
  <![endif]-->

  <?php /*<!-- Favicon -->
  <link rel="shortcut icon" href="/media/img/favicon/favicon.png">  */ ?>
</head>

<body>

<!-- Header Starts -->
<header>
  <div class="container">
    <div class="row">
      <div class="col-md-4 col-sm-4">
        <div class="logo">
          <h2><span class="hlink" hlink="/">Promo <span class="color">Tnx</span></span></h2>
          <div class="hmeta">Путеводитель в мире скидок =)</div>
        </div>
      </div>
      <div class="col-md-5 col-md-offset-3 col-sm-6 col-sm-offset-2">
        
            <form class="form-inline" role="form" method="get" action="">
              <div class="form-group">
                <input type="text" class="form-control" id="search" placeholder="Введите что-нибудь...">
              </div>
              <button type="submit" class="btn btn-default">Искать</button>
            </form>
        
      </div>
    </div>
  </div>
</header>

<div role="banner" class="navbar bs-docs-nav">
        <div class="container">
            <nav role="navigation" class="collapse navbar-collapse bs-navbar-collapse">
            <ul class="nav navbar-nav">
                <li><span class="hlink" hlink="/">Главная</span></li>
                <li><span class="hlink" hlink="/novinki/">Новинки</span></li>
                <li><span class="hlink" hlink="/shops/">Магазины</span></li>
            </ul>
        </nav>
    </div>
</div>

<div class="content">
  <div class="container">

  <!-- Blog starts -->
            
            <div class="blog">
               <div class="row">
                  <div class="col-md-12">
                     <div class="row">
                  
                                        
                        <?=$content ?>

                        
                        <div class="col-md-4 col-sm-4">
                           <div class="sidebar">
                              <!-- Widget -->
                              <?php /*<div class="widget">
                                 <h4>Subscribe</h4>
                                 
                              </div> */ ?>
                              <div class="widget">
                                 <h4>Магазины</h4>
                                 <ul>
                                  <?php
                                  $top_shops = ORM::factory('shop')->get_top_shops();
                                  foreach ($top_shops as $shop) : ?>
                                    <li><a href="<?=Helper_Index::shop_url($shop); ?>"><?=$shop['name'] ?></a> (<?=$shop['count'] ?>)</li>
                                  <?php endforeach; ?>
                                  </ul>
                              </div>
                              
                              
                           </div>                                                
                        </div>
                     </div>
                     
                     
                     
                  </div>
               </div>
            </div>
  </div>
</div>

<!-- Social -->

<div class="social-links">
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <p class="big"><span>Мы в Соцсетях</span> <span class="hlink" hlink="https://vk.com/promotnx">Вконтакте</span> <span class="hlink" hlink="https://www.facebook.com/pages/Promotnx-%D0%BF%D1%80%D0%BE%D0%BC%D0%BE%D0%BA%D0%BE%D0%B4%D1%8B-%D0%B4%D0%BB%D1%8F-%D0%BF%D0%BE%D0%BF%D1%83%D0%BB%D1%8F%D1%80%D0%BD%D1%8B%D1%85-%D0%BC%D0%B0%D0%B3%D0%B0%D0%B7%D0%B8%D0%BD%D0%BE%D0%B2/377105049086279">Facebook</span> <span class="hlink" hlink="https://twitter.com/promotnx">Twitter</span></p>
      </div>
    </div>    
  </div>
</div>


<!-- Footer -->
<footer>
  <div class="container">
    <div class="row"> 
      <div class="col-md-12">
          <div class="copy">
            <h6>Promo <span class="color">Tnx</span></h6>
            <p>Copyright &copy; <span class="hlink" hlink="/">PromoTnx.ru</span> - <span class="hlink" hlink="/">Главная</span> | <span class="hlink" hlink="/novinki/">Новинки</span> | <span class="hlink" hlink="/shops/">Магазины</span></p>
          </div>
      </div>
    </div>
  <div class="clearfix"></div>
  </div>
</footer> 

<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
    (w[c] = w[c] || []).push(function() {
        try {
            w.yaCounter22482703 = new Ya.Metrika({id:22482703,
                    webvisor:true,
                    clickmap:true,
                    trackLinks:true,
                    accurateTrackBounce:true});
        } catch(e) { }
    });

    var n = d.getElementsByTagName("script")[0],
        s = d.createElement("script"),
        f = function () { n.parentNode.insertBefore(s, n); };
    s.type = "text/javascript";
    s.async = true;
    s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";

    if (w.opera == "[object Opera]") {
        d.addEventListener("DOMContentLoaded", f, false);
    } else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="//mc.yandex.ru/watch/22482703" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->

<!-- JS -->
<script src="/media/js/jquery.js"></script>
<script src="/media/js/bootstrap.js"></script> 
<script src="/media/js/jquery.isotope.js"></script> <!-- Isotope for gallery -->
<script src="/media/js/jquery.prettyPhoto.js"></script> <!-- prettyPhoto for images -->
<script src="/media/js/jquery.cslider.js"></script> <!-- Parallax slider -->
<script src="/media/js/modernizr.custom.28468.js"></script>
<script src="/media/js/filter.js"></script> <!-- Filter for support page -->
<script src="/media/js/cycle.js"></script> <!-- Cycle slider -->
<script src="/media/js/jquery.flexslider-min.js"></script> <!-- Flex slider -->

<script src="/media/js/easing.js"></script> <!-- Easing -->
<script src="/media/js/custom.js"></script>
</body>
</html>